-- GENERATED SPELL FOR [Arcane Nullifier X-21] --


function spell0_6232(pUnit, Event) --@Mass Nullify,Self--
pUnit:FullCastSpellOnTarget(10832,pUnit)
pUnit:RegisterEvent('Sorts_6232', 618, 1)
end

function spell1_6232(pUnit, Event) --@Reflection Field,Self--
pUnit:FullCastSpellOnTarget(10831,pUnit)
pUnit:RegisterEvent('Sorts_6232', 5300, 1)
end

function Sorts_6232(pUnit, Event)
local choix_sorts_6232 = math.random(0, 1)
if choix_sorts_6232 == 0 then
pUnit:RegisterEvent('spell0_6232', 1, 1)
end
if choix_sorts_6232 == 1 then
pUnit:RegisterEvent('spell1_6232', 1, 1)
end
end

function mob6232_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6232', math.random(1500, 3000), 1)
end

function mob6232_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6232_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6232_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6232, 1, 'mob6232_Action')
RegisterUnitEvent(6232, 2, 'mob6232_Leave')
RegisterUnitEvent(6232, 3, 'mob6232_Kill')
RegisterUnitEvent(6232, 4, 'mob6232_Die')
